package com.struts.web.user.register;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import com.struts.deal.user.register.Deal;

import com.lg.system.CLGAction;

public class RegLoginAction extends CLGAction {
     
	
	public ActionForward execute(ActionMapping actionMapping,
            ActionForm actionForm,
            HttpServletRequest request,
            HttpServletResponse response) throws
Exception {
		RegLoginForm aWebForm = (RegLoginForm)actionForm;
		boolean result = false;
		result=Deal.doRegLogin(aWebForm, request);
		if(result==false){
			return actionMapping.findForward("sorryreg");
		}
		return actionMapping.findForward("regUserInfo");
     }
	
}
